<?php defined('InShopNC') or exit('Access Invalid!');?>
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/presale.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/home_index.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/waypoints.js"></script>
<div class = "pre-sale">
    <div class="pre-sale-banner">
        <div class="banner-border">
            <div class="banner">
                <ul>
                    <?php foreach($output['adv_list'] as $adv){?>
                    <li><a href="<?php echo empty($adv['adv_url']) ? "javascript:;":$adv['adv_url'];?>">
                        <img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$adv['adv_image'];?>" alt="<?php echo $adv['adv_title'];?>" title="<?php echo $adv['adv_title'];?>" />
                        </a>
                    </li>
                    <?php }?>
                </ul>
            </div>
            <div class="banner-min-border">
                <?php foreach($output['slider_list'] as $silder){?>
                <div class="banner-min">
                    <a href="<?php echo empty($silder['adv_url']) ? "javascript:;":$silder['adv_url'];?>">
                    <img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$silder['adv_image'];?>" width="100%" height="100%">
                    <div class="banner-min-font">
                        <div style="padding: 10px;"><?php echo $silder['adv_title'];?></div>
                    </div></a>
                </div>
                <?php }?>

            </div>
            <div class="timeline">
                <div class="timeline-btn-l"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/left.jpg" width="100%" height="100%"></div>
                <div class="timeline-date">
                    <?php foreach($output['date_list'] as $date){?>
                    <span <?php if($date==$output['curdate']){?>class="current"<?php }?>><a href="<?php echo urlShop('presale','index',array('date'=>$date));?>"><?php echo str_replace(" ","<br/>", date('m月d日 H:i',$date));?></a></span>
                    <?php }?>

                </div>
                <div class="timeline-btn-r"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/right.jpg" width="100%" height="100%"></div>
            </div>
        </div>

    </div>
    <div class="early">
        <div class="early-title">
            <div class="early-title-left">
                <div class="early-title-icon"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/star.jpg"></div>
                <div class="early-title-font">
                    <div style = "width:100px; color: #b58c51;font-size:16px; ">抢先挑好货&nbsp;&nbsp;/</div>
                    <div style = "width:550px; color: #ccc;  font-size:14px;">抢先收藏您喜爱的商品，开售后可进入“我的收藏夹”直接购买，抢购快人一步</div>
                </div>
            </div>
            <div class="early-title-right">
               <div class="time-remain clock" count_down="<?php echo $output['curdate'] - time();?>">
                    <div class="clock-d"><em time_id="h">0</em></div><div class = "clock-dot">:</div>
                    <div class="clock-d"><em time_id="m">0</em></div><div class = "clock-dot">:</div>
                    <div class="clock-d"><em time_id="s">0</em></div>
                </div>
                <div  class="early-font1">距离开始还有</div>

            </div>
        </div>
        <ul>
          <?php foreach($output['list'] as $item){?>
            <li>
                <a href="<?php echo urlShop('presale','list',array('activity_id'=>$item['activity_id']));?>"><div class="early-content-img"><img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ACTIVITY.DS.$item['activity_banner'];?>" width = "100%" height = "100%"></div><div class="early-content-font"><?php echo $item['activity_title'];?></div></a>
            </li>
          <?php }?>
        </ul>
    </div>

    <div class="attention">
        <div class="early-title">
            <div class="early-title-left">
                <div class="early-title-icon"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/heart.jpg"></div>
                <div class="early-title-font">
                    <div style = "width:100px; color: #b58c51;font-size:16px; ">马上订阅&nbsp;&nbsp;/</div>
                    <div style = "width:550px; color: #ccc;  font-size:14px;"> 订阅您喜欢的品牌，开售当天我们将免费通知您</div>
                </div>
            </div>
        </div>
        <ul>
        <?php foreach($output['brands'] as $brand){ ?>
            <li>
                <a href="<?php echo urlShop('presale','notice',array('brand_id'=>$brand['brand_id']));?>">
                 <div class="attention-brandImg"><img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_BRAND.DS.$brand['brand_pic'];?>"></div>
                 <div class="attention-font"><?php echo $brand['brand_title'];?></div>
                 <div class="attention-add"><font style = "font-size:26px;">+</font>开售提醒</div>
                </a>
            </li>
        <?php }?>
        </ul>
    </div>
</div>
</div>
